/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.service;

import java.io.IOException;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.AttachFile;
import com.yami.shop.common.util.PageParam;

/**
 *
 * Created by lgh on 2018/07/27.
 */
public interface AttachFileService extends IService<AttachFile> {

	String uploadFile(byte[] bytes,String originalName) throws IOException;

	String uploadImg(byte[] bytes,AttachFile attachFile) throws IOException;

	String uploadImFile(byte[] bytes,String originalName) throws IOException;

	void deleteFile(String filePath);

    Boolean updateFileName(AttachFile attachFile);

	IPage<AttachFile> getPage(PageParam<AttachFile> page, AttachFile attachFile);
}
